package com.example.product.biz.domain.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

@Data
@Schema(description = "商品搜索参数")
public class ProductSearchDTO {
    
    @Schema(description = "页码", defaultValue = "1")
    private Integer page = 1;
    
    @Schema(description = "每页大小", defaultValue = "10")
    private Integer pageSize = 10;
    
    @Schema(description = "关键词（商品名称或描述）")
    private String keyword;
    
    @Schema(description = "分类ID")
    private Integer categoryId;
    
    @Schema(description = "描述关键词")
    private String description;
    
    @Schema(description = "最低价格")
    private Double minPrice;
    
    @Schema(description = "最高价格")
    private Double maxPrice;
    
    @Schema(description = "排序字段")
    private String sortBy;
    
    @Schema(description = "排序方式(asc/desc)")
    private String sortOrder;
}